import StatusEnum from "@/enums/StatusEnum";
import BoolEnum from "@/enums/BoolEnum";

/**
 * @param label 表头
 * @param prop 字段名
 * @param isSearch 是否筛选项
 * @type {[{isSearch: boolean, prop: string, label: string},{isSearch: boolean, prop: string, label: string},{isSearch: boolean, prop: string, label: string},{isSearch: boolean, prop: string, label: string, enum: {0: string, 1: string, 2: string}}]}
 */
const tableColumn = [{
  label: "问诊单ID",
  prop: "id",
  isSearch: true,
  formType: "input",
  isTable: true
}, {
  label: "问诊单名称",
  prop: "name",
  isTable: true
}, {
  label: "使用医生",
  prop: "doctor_names",
  isSearch: true,
  formType: "input",
  isTable: true
},{
  label: "归属平台",
  prop: "platform",
  isTable: true
},
{
  label: "创建人",
  prop: "creator",
  isTable: true
},
{
  label: "创建时间",
  prop: "created_at",
  isTable: true
},{
  label: "状态",
  prop: "is_status",
  isTable: true,
  formType: "radio",
  defaultValue: 0,
  enum: StatusEnum
}
]
const tableConfig = {
  editBtnShow: true,
  editBtnPath: "/baseInfo/questionnaire/questionnaire_add",
  buttons: ["view","edit", "status", "delete"]
}
const pageConfig = {
  small: false,
  disabled: false,
  background: false,
}

export {
  tableColumn,
  tableConfig,
  pageConfig
};
